<?php session_start();
	$reg=$_SESSION["correo_1_cliente"];
	if (!isset($reg))
	header("Location: index.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>Solicitud de Clase</title>
	<link rel="stylesheet" href="css/style.css" type="text/css">
	<link rel="stylesheet" href="css/form.css" type="text/css">
	<link type="text/css" href="css/demo_table.css" rel="stylesheet" />
  	<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
  	<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script>
  	<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
	<script type="text/javascript" src="js/prefixfree.min.js"></script>
	<script type="text/javascript" src="js/menuVertical.js"></script>
	<script type="text/javascript" language="javascript" src="js/jquery.dataTables.js"></script>
	<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
	<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
 	<script>
  		$(document).ready(function() {
    		$("#datepicker").datepicker({
       			minDate: "#actualDate",
       			maxDate: new Date(2015, 12, 31),
		       dateFormat: 'yy-mm-dd',
       			constrainInput: true,
	});
  		});
  	</script>
</head>
<body>
	<div class="top">
		<img class="img" src="img/logo.png" alt=""  height="82" >
		<span id="encabezado">Plataforma de Solicitud de Servicios</span>
	</div>
	<div class="menu">
		<ul id="navi">
			<li><a href="alumnoDatosPersonales.php">Datos personales</a></li>
			<li><a href="alumnoSolicitarClase.php">Solicitar Clases</a></li>
			<li><a href="alumnoCancelaciones.php">Cancelar clases</a></li>
			<li><a href="alumno.php">Mi historial</a></li>
			<li><a href="logout.php">Salir</a></li>
		</ul>	
	</div>
	<div class="contenido">	

		<?php 	
	
	$nombre= utf8_encode($reg->nombre_uno);
	$apellido= utf8_encode($reg->apellido_uno);
		echo "<h4>$nombre $apellido</h4>";
	?>
		<h2>Solicitar un clase</h2>
		<blockquote><h3>Importante:</h3>Lorem ipsum ad his scripta blandit partiendo, eum fastidii accumsan euripidis in, eum liber hendrerit an. Qui ut wisi vocibus suscipiantur, quo dicit ridens inciderint id. Quo mundi lobortis reformidans eu, legimus senserit definiebas an eos.</blockquote>
		<form class="ingreso" method="post" action="alumnoFormasdePago.php">
			<article>
			<label>Fecha de la Clase</label>
			<input type="text" id="datepicker" readonly="readonly" size="12" name="fecha" placeholder="Seleccione Fecha" required/>
			<label>Hora de la Clase</label>
			<select name="hora" required>
				<option default></option>
				<option value="060000">6 am</option>
				<option value="070000">7 am</option>
				<option value="080000">8 am</option>
				<option value="090000">9 am</option>
				<option value="100000">10 am</option>
				<option value="110000">11 am</option>
				<option value="120000">12 m</option>
				<option value="130000">1 pm</option>
				<option value="140000">2 pm</option>
				<option value="150000">3 pm</option>
				<option value="160000">4 pm</option>
				<option value="170000">5 pm</option>
				<option value="180000">6 pm</option>
				<option value="190000">7 pm</option>
				<option value="200000">8 pm</option>
				<option value="210000">9 pm</option>
				<option value="220000">10 pm</option>
			</select>
			<label>Materia</label>
			<select name="materia" id="materia" required>
				<option default></option>
            <?php 
				require_once('includes/conexionbd.inc.php');
	            $query= "SELECT nombre_mat, costo_hora FROM materias";
	            $res = mysql_query($query, $conn);
             	while($linea = mysql_fetch_array($res)){
              		echo "<option value='$linea[0]' name='$linea[1]'>$linea[0]</option>\n";}
            ?>
          	</select>
			<label>Duración de la Asesoría</label>
			<select name="duracion" required>
				<option default></option>
				<option value="1">1 Hora</option>
				<option value="2">2 Horas</option>
				<option value="3">3 Horas</option>
				<option value="4">4 Horas</option>
				<option value="5">5 Horas</option>
			</select>
			<label>Número de Alumnos</label>
			<select name="alumnos" required>
				<option default></option>
				<option value="1">1 alumno</option>
				<option value="2">2 alumnos</option>
				<option value="3">3 alumnos</option>
				<option value="4">4 alumnos</option>
			</select>
			</article>
			<article>
			<label>Tiene preferencia por algun tutor?</label>
			<div id="firstpane" class="menu_list">
				<p class="menu_head">SI</p>
				<div class="menu_body">
					<label>Seleccione el Profesor</label>
					<select name="tutor" id="tutor">
					<?php 
						require_once('includes/conexionbd.inc.php');
			            $query= "SELECT nombre_uno_tutor FROM view_class_historial";
			            $res = mysql_query($query, $conn);
		             	while($linea = mysql_fetch_array($res)){
		              		echo "<option value='$linea[0]'>$linea[0]</option>\n";}
		            ?>
		            </select>	
				</div>
				<p class="menu_head">NO</p>
				<div class="menu_body">
					<p>Se le asignara el profesor que cumpla con sus requerimientos</p>	
				</div>
			</div>
			<label>Comentarios</label>
			<textarea name="comentario" placeholder="Escriba sus comentarios sobre la asesoria"></textarea> 
			<label>El costo de la clase es <costo></costo></label>
			</article>
			<input type="submit" value="Ir a Formas de Pago">
		</form>
	</div>
	<div class="footer">
		<ul>
			<li><b>Calle 100 No. 8 55 Torre C Piso 10 World Trade Center</b></li>
			<li><b>Teléfono</b> <span>646 71 23</span></li>
			<li><b>Fax</b> <span>621 15 65</span></li>
		</ul>
		<article class="redes">
			<g:plusone></g:plusone>
		</article>
		<article class="redes">
			<iframe src="//www.facebook.com/plugins/like.php?href=https%3A%2F%2Fwww.facebook.com%2Fpages%2FTecnologia-Online%2F146028292143954&amp;send=false&amp;layout=button_count&amp;width=110&amp;show_faces=true&amp;action=like&amp;colorscheme=dark&amp;font=tahoma&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:110px; height:21px;" allowTransparency="true"></iframe></li>
		</article>
		<article class="redes">
			<a href="https://twitter.com/lleoz" class="twitter-follow-button" data-show-count="false" data-lang="es" data-size="large">Sigueme @lleoz</a></li>
		</article>
	</div>
</body>
</html>